package com.etc.vo;

import java.util.Arrays;
import java.util.List;
import java.util.Map;

public class ListingData {
    int goodsId;//商品ID
    int businessId;//商家id
    String goodsName;//商品名
    int type;//类型
    String[] tag;//属性
    Map<String,String[]> tagValMapVal;//属性值映射
    Map<String,String[]> tagValMapName;
    double Price;//价格
    String desc;//商品描述
    String keywords;//关键字
    List<ListingImgVo> img;//图片（主图0：详细图1）

    public Map<String, String[]> getTagValMapName() {
        return tagValMapName;
    }

    public void setTagValMapName(Map<String, String[]> tagValMapName) {
        this.tagValMapName = tagValMapName;
    }

    public int getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(int goodsId) {
        this.goodsId = goodsId;
    }

    public int getBusinessId() {
        return businessId;
    }

    public void setBusinessId(int businessId) {
        this.businessId = businessId;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String[] getTag() {
        return tag;
    }

    public void setTag(String[] tag) {
        this.tag = tag;
    }

    public Map<String, String[]> getTagValMapVal() {
        return tagValMapVal;
    }

    public void setTagValMapVal(Map<String, String[]> tagValMapVal) {
        this.tagValMapVal = tagValMapVal;
    }

    public double getPrice() {
        return Price;
    }

    public void setPrice(double price) {
        Price = price;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public String getKeywords() {
        return keywords;
    }

    public void setKeywords(String keywords) {
        this.keywords = keywords;
    }

    public List<ListingImgVo> getImg() {
        return img;
    }

    public void setImg(List<ListingImgVo> img) {
        this.img = img;
    }

    @Override
    public String toString() {
        return "ListingData{" +
                "goodsId=" + goodsId +
                ", businessId=" + businessId +
                ", goodsName='" + goodsName + '\'' +
                ", type=" + type +
                ", tag=" + Arrays.toString(tag) +
                ", tagValMap=" + tagValMapVal +
                ", Price=" + Price +
                ", desc='" + desc + '\'' +
                ", keywords='" + keywords + '\'' +
                ", img=" + img +
                '}';
    }
}
